#ifndef  _SINGLE_APPLICATION_H_
#define  _SINGLE_APPLICATION_H_
#include <QApplication>
#include <QString>
#include <QSharedMemory>

class SingleApplication :public QApplication {


	Q_OBJECT
public:

	SingleApplication(int& argc, char** argv,const QString &uniqueKey);

	bool isRunning();



protected:


	void initApp();
private slots:
	void slotReceiveMessage();


private:
	bool m_bIsRunning = false;
	QString m_uniqueKey = "";
	



};


#endif // ! SINGLE_APPLICATION_H_
